package com.qujia.label.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qujia.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 标签规则
对象 label_rule
 *
 * @author qujia
 * @date 2021-06-15
 */
public class LabelRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标签主表id */
    @ApiModelProperty(value = "标签主表id")
    private Integer id;

    public List<Long> getEnterpriseIdListForAuthor() {
        return enterpriseIdListForAuthor;
    }
    public void setEnterpriseIdListForAuthor(List<Long> enterpriseIdListForAuthor) {
        this.enterpriseIdListForAuthor = enterpriseIdListForAuthor;
    }
    private List<Long> enterpriseIdListForAuthor;

    /** 标签名 */
    @ApiModelProperty(value = "标签名")
    private String labelName;

    /** 使用人数 */
    @ApiModelProperty(value = "使用人数")
    private String userscount;

    /** 油站id */
    @ApiModelProperty(value = "油站id")
    private Long stationId;

    /** 删除标识：1 是，0 否 */
    @ApiModelProperty(value = "删除标识：1 是，0 否")
    private String delFlag;

    @ApiModelProperty(value = "是否添加标签")
    private String isAddLabel;

    @ApiModelProperty(value = "标签规则详情列表")
    private List<LabelRuleDetail> labelRuleDetailList;

    /** 油企id */
    @ApiModelProperty(value = "油企id")
    private Long enterpriseId;

    /** 活动id */
    @ApiModelProperty(value = "活动id")
    private String activityIds;

    /** 活动name */
    @ApiModelProperty(value = "活动name")
    private String activityName;
    private String activityNames;
    /** 开始时间“2023-05-04” */
    @ApiModelProperty(value = "开始时间“2023-05-04”")
    private String beginTime;

    /** 结束时间“2023-05-08” */
    @ApiModelProperty(value = "结束时间“2023-05-08”")
    private String endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    @ApiModelProperty(value = "渠道类型")
    private String labelRuleType;
    @ApiModelProperty(value = "类型名称")
    private String categoryName;
    @ApiModelProperty(value = "类型图标")
    private String categoryImageUrl;

    private Integer dataFlag;

    @ApiModelProperty(value = "是否需要审核：0-不需要，1-需要")
    private Integer isAudit;

    public Integer getIsAudit() {
        return isAudit;
    }

    public void setIsAudit(Integer isAudit) {
        this.isAudit = isAudit;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getLabelRuleType() {
        return labelRuleType;
    }

    public void setLabelRuleType(String labelRuleType) {
        this.labelRuleType = labelRuleType;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryImageUrl() {
        return categoryImageUrl;
    }

    public void setCategoryImageUrl(String categoryImageUrl) {
        this.categoryImageUrl = categoryImageUrl;
    }

    public Integer getDataFlag() {
        return dataFlag;
    }

    public void setDataFlag(Integer dataFlag) {
        this.dataFlag = dataFlag;
    }

    public String getCouponActivityIds() {
        return couponActivityIds;
    }

    public void setCouponActivityIds(String couponActivityIds) {
        this.couponActivityIds = couponActivityIds;
    }

    /** 优惠券活动ids */
    @ApiModelProperty(value = "优惠券活动ids")
    private String couponActivityIds;

    private String couponActivityNames;

    public String getCouponActivityNames() {
        return couponActivityNames;
    }

    public void setCouponActivityNames(String couponActivityNames) {
        this.couponActivityNames = couponActivityNames;
    }

    public LabelRule() {
    }

    /**
     * 获取活动name
     * @return 活动name
     */
    public String getActivityName() {
        return activityName;
    }

    public String getActivityNames() {
        return activityNames;
    }

    public void setActivityNames(String activityNames) {
        this.activityNames = activityNames;
    }

    /**
     * 设置活动name
     * @param activityName 活动name
     */
    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }


    public void setUserscount(String userscount) {
        this.userscount = userscount;
    }

    public String getUserscount() {
        return userscount;
    }



    public List<LabelRuleDetail> getLabelRuleDetailList() {
        return labelRuleDetailList;
    }


    public String getActivityIds() {
        return activityIds;
    }

    public void setActivityIds(String activityIds) {
        this.activityIds = activityIds;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public void setLabelRuleDetailList(List<LabelRuleDetail> labelRuleDetailList) {
        this.labelRuleDetailList = labelRuleDetailList;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setLabelName(String labelName)
    {
        this.labelName = labelName;
    }

    public String getLabelName()
    {
        return labelName;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getIsAddLabel() {
        return isAddLabel;
    }

    public void setIsAddLabel(String isAddLabel) {
        this.isAddLabel = isAddLabel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("labelName", getLabelName())
            .append("stationId", getStationId())
            .append("delFlag", getDelFlag())
            .append("isAddLabel", getIsAddLabel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
